package com.caikun.service_management.mapper;

import com.caikun.model.entity.ServiceEntity;
import com.caikun.model.vo.PackageVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ServiceMapper {
    List<ServiceEntity> selectByNameLike(@Param("serviceName") String serviceName);

    int insert(ServiceEntity serviceEntity);

    Boolean updateById(ServiceEntity serviceEntity);

    Boolean deleteById(Integer serviceId);

    List<ServiceEntity> queryAllService();

    List<PackageVO> queryAllPackageWithService();
}